// getopt.cpp : Defines the entry point for the console application.
//

#include "ArgumentParser.h"
#include "Helper.h"

#include<iostream>


int main(int argc, char* argv[])
{
	
	CArgumentParser* ap=new CArgumentParser("p:h");

	ap->m_Helper->fillProgramName("bomb");
	ap->m_Helper->fillHeadMessage("(C)2004 sonofdelphi\nNetwork congestion creation tool");
	ap->m_Helper->fillUsageLine("bomb [OPTIONS] <Target IP>");
	ap->fillHelpForOption('p',"<Port Number>");
	ap->fillHelpForOption('h',"Displays this help message");
	ap->m_Helper->fillTailMessage("This program comes with absolutely no warranty.\n");
	ap->m_Helper->displayHelp();

	ap->parse(argc,argv);
	bool f;

	if(ap->wasParseSuccessful()){
		std::cout<<"Success!"<<std::endl;
	}
	delete ap;

	return 0;
}

